package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 收藏管理对象 tour_collect
 *
 * @author once
 * @date 2020-10-02
 */
public class TourCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏ID */
    private Long collectId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 收藏的记录的ID */
    @Excel(name = "收藏的记录的ID")
    private Long collectedId;

    /** 收藏类别（视频、游记、问题、景点等） */
    @Excel(name = "收藏类别", readConverterExp = "视=频、游记、问题、景点等")
    private String collectType;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private String isDelete;

    public void setCollectId(Long collectId)
    {
        this.collectId = collectId;
    }

    public Long getCollectId()
    {
        return collectId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setCollectedId(Long collectedId)
    {
        this.collectedId = collectedId;
    }

    public Long getCollectedId()
    {
        return collectedId;
    }
    public void setCollectType(String collectType)
    {
        this.collectType = collectType;
    }

    public String getCollectType()
    {
        return collectType;
    }
    public void setIsDelete(String isDelete)
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete()
    {
        return isDelete;
    }

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    public void setCreatetime(Date checkTime) {
        this.createtime = checkTime;
    }



    public Date getCreatetime() {
        return createtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("collectId", getCollectId())
            .append("userId", getUserId())
            .append("collectedId", getCollectedId())
            .append("collectType", getCollectType())
            .append("isDelete", getIsDelete())
            .append("createtime", getCreatetime())
            .toString();
    }
}
